#打开文件
file = open("b.txt","w",encoding="utf-8")

file.write("哈哈中国！")

file.close()